package cn.etynit.pet.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.etynit.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author etynit
 * @since 2022-10-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PetType extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();

    /**
     * 父级对象
     */
    private PetType parent;
}
